package com.shalanzi.hospital.utils;

import com.shalanzi.hospital.exceptions.ParamsException;

/**
 * @author Dream_飞翔
 * @date 2021/9/26
 * @time 19:12
 * @email 1072876976@qq.com
 */
public class ParamUtil {
    public static void isTrue(Boolean flag, String msg) {
        if (flag) {
            throw new ParamsException(msg);
        }
    }
}
